package com.yocard.yxyd.di.module;


import com.yocard.yxyd.base.AppContext;
import com.yocard.yxyd.http.HttpManager;

import javax.inject.Singleton;

import dagger.Module;
import dagger.Provides;

/**
 * Created on 2018/9/24.
 */
@Module
public class AppModule {

    private final AppContext application;

    public AppModule(AppContext application) {
        this.application = application;
    }

    @Provides
    @Singleton
    public HttpManager provideHttpManager() {
        return HttpManager.getInstance();
    }
}
